<style>
.amain {padding: 0px 10px; min-width: 540px; margin-top: 10px; margin-bottom: 5px;}
.amain > pre {padding: 5px 3px; margin: 0; font-family: 'Microsoft YaHei',Arial,sans-serif; border-left: 3px solid #7ad03a; background-color: #e6e9ed;}
.amain > h4 {padding: 2px 0px; margin: 0px; border-bottom: 1px dashed #216668; color: #216668;}
</style>
<div class="amain">
	<h4>1、JDK环境变量配置</h4>
	<pre>
Windows JDK环境变量配置
	新建：JAVA_HOME
		jdk安装路径，如 C:\Program Files\Java\jdk1.6.0_45
	Path变量中添加
		;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
	新建：CLASSPATH
		.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
		
		
Linux JDK环境变量配置
	修改/etc/profile文件
		export JAVA_HOME=/usr/local/jdk1.8
		export PATH=$JAVA_HOME/bin:$PATH
		export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
	配置生效  source profile

	修改用户主目录下的.bash_profile文件，只对修改用户起效
		export JAVA_HOME=/usr/local/jdk1.8
		export PATH=$JAVA_HOME/bin:$PATH
		export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
	配置生效  source .bash_profile</pre>
</div>
